package com.tansun.easycare.rule.ruletest.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.tansun.easycare.rule.common.service.impl.RuleBaseServiceImpl;
import com.tansun.easycare.rule.ruletest.dao.RuleRespDao;
import com.tansun.easycare.rule.ruletest.entity.RuleResp;
import com.tansun.easycare.rule.ruletest.service.RuleResponseService;

@Service
public class RuleResponseServiceImpl extends RuleBaseServiceImpl<RuleRespDao, RuleResp> implements RuleResponseService {
    @Autowired
    RuleRespDao ruleRespDao;

    @Override
    @Transactional
    public void deleteByTestId(String testId) {
        ruleRespDao.deleteByTestId(testId);
    }

    @Override
    @Transactional
    public List<RuleResp> findListByTestId(String id) {
        return ruleRespDao.findListByTestId(id);
    }
}
